<template>
	<view>
		<baseHead title="基本设置" bg="#ffffff" color="#000000"></baseHead>
		<view style="background-color: #ffffff;">
			<u-cell-group>
				<u-cell isLink title="基本资料" url="jibenziliao/index"></u-cell>
				<u-cell isLink title="实名认证" @click="shimingrenzheng"></u-cell>
				<u-cell isLink title="常用语管理" url="jibenziliao/changyongyu"></u-cell>
				<u-cell isLink title="注销账号" url="jibenziliao/logOff"></u-cell>
				<u-cell isLink title="修改密码" @click="modifyPassword"></u-cell>
				<u-cell isLink title="隐私设置" url="jibenziliao/Privacy"></u-cell>
				<!-- <u-cell  title="版本号" :value="setProperty" ></u-cell> -->

				<!-- <u-cell isLink title="退出登录" @click="tuicu"></u-cell> -->
			</u-cell-group>

			<view class="tubutcss">
				<view class="tubnrs" @click="tuicu">
					退出登录</view>
			</view>

		</view>
	</view>
</template>

<script>
	import baseHead from '@/pages/component/baseHead.vue'

	export default {
		data() {
			return {
				// 版本信息
				setProperty: uni.getStorageSync('setProperty').version,
			}
		},
		onShow() {
			  this.$util.currentUser()
		},
		components: {
			baseHead
		},
		onReachBottom() {},
		created() {},
		methods: {
			tuicu() {
				let that = this;
				uni.showModal({
					title: "提示",
					content: "确认退出登录吗",
					success: function(res) {
						if (res.confirm) {
							that.$util.tuiculogout();
						}
					}
				})
			},
			//修改密码
			modifyPassword(){
				uni.navigateTo({
					url: "/pages/Login/forgetYourPassword?id=1",
				});
			},
			// 实名认证
			shimingrenzheng(){
				let app=getApp()
				if(app.globalData.user.Status===0 || app.globalData.user.Status===1 || app.globalData.user.Status===2){
					uni.navigateTo({
						url:"/pages/views/packageB/type-jobhunting/jibenshezhi/jibenziliao/shimingjieguo?status="+app.globalData.user.Status
					})
				}else{
					uni.navigateTo({
						url:"/pages/views/packageB/type-jobhunting/jibenshezhi/jibenziliao/shimingrenzheng",
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.tubutcss {
		position: fixed;
		bottom: 100rpx;
		width: 100%;
		padding: 40rpx;
		box-sizing: border-box;

		.tubnrs {
			width: 100%;
			color: #ffffff;
			text-align: center;
			background-color: #1684FC;
			padding: 20rpx;
			box-sizing: border-box;
			border-radius: 10rpx;
		}
	}
</style>